function main() {
    // 获取组件元素和内容
    const sinEle = this.$$("single_select_cmndzv");
    const text = sinEle.$$getValue();
    console.log(text);

    // 获取被控组件model
    const textareaModeFine1 = this.$$("text_input_76ma60");  // 法人对应的输入框

    // 定义一个辅助函数来设置验证规则
    function setValidationRules(textarea, condition, rules) {
        if (condition) {
            textarea.data.props.validation = rules;
        } else {
            textarea.data.props.validation = [];
        }
    }

    // 设置法人相关的验证规则
    setValidationRules(textareaModeFine1, text ==2 || text ==3, [{
        text: "必填",
        type: "required",
        disable: false,
        message: "该项为必填项",
        trigger: ['change', 'blur']
    }]);

}
